<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>Resizing Tabbar</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="title" content="Samples" />
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link rel="icon" href="../common/favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="../common/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../common/css/style.css" type="text/css" media="screen" />

	</head>
	<body>
        <div class="header">
            <a class="logo" href="http://www.dhtmlx.com" title="DHTMLX homepage"></a>
            <div class="tittle-dhtmlx">DHTMLX Docs & Samples Explorer</div>
            <div class="search-field">
                <form action="http://docs.dhtmlx.com/doku.php" accept-charset="utf-8" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" title="Search" /><button type="submit">Search</button><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
            </div>
            <div class="buttons">
                <a class="doc_inact" href="../../../docsExplorer/index.html" title="DHTMLX Documentation homepage"></a>
                <a class="sample"></a>
            </div>
        </div>
        <div class="content">
            <div class="navigation-div">
                <a href="../../../docsExplorer/samples.html" class="navigation"><img src="../common/icons/file.gif" alt="" >All components</a>
                <div class="arrow"></div>
                <a href="../index.html" class="navigation"><img height="22" src="../common/icons/tabbar.gif" alt="" >dhtmlxTabbar</a>
                <div class="arrow"></div>
                <a href="./index.html" class="navigation"><img src="../common/icons/none.gif" alt="" >Behaviours</a>
            </div>
            <div style="display:block;">
                <h3>Resizing Tabbar</h3>
            </div>
            <div class="navigation-div">
                <a href="#code" class="navigation view-source"><img src="../common/icons/source.gif" alt="" >View page source</a>
            </div>
            <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxtabbar.css">
	<script  src="../../codebase/dhtmlxcommon.js"></script>
	<script  src="../../codebase/dhtmlxtabbar.js"></script>



	<div id="a_tabbar" style="width:395px; height:30px;"/>
			
<script>
            tabbar=new dhtmlXTabBar("a_tabbar","top");

            tabbar.setSkin('dhx_skyblue');
            tabbar.setImagePath("../../codebase/imgs/");

			tabbar.enableAutoSize(false,true);

            tabbar.addTab("a1","Tab 1-1","100px");
            tabbar.addTab("a2","Tab 1-2","100px");
            tabbar.addTab("a3","Tab 1-3","100px");

            tabbar.setContentHTML("a1","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
            tabbar.setContentHTML("a2","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
            tabbar.setContentHTML("a3","<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.<br/>The content can be set as <b>HTML</b> node or as <b>HTML</b> text.");
            
            tabbar.setTabActive("a1")
</script>
			
			
         </div>
    <div class="source">
        <div class="teg">Source</div>
        <div class="code" id="code">
		<div class="hl-main"><pre><span class="hl-brackets">&lt;</span><span class="hl-reserved">link</span><span class="hl-code"> </span><span class="hl-var">rel</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">STYLESHEET</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">type</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">text/css</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">href</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">../../codebase/dhtmlxtabbar.css</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">script</span><span class="hl-code">  </span><span class="hl-var">src</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">../../codebase/dhtmlxcommon.js</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">script</span><span class="hl-code">  </span><span class="hl-var">src</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">../../codebase/dhtmlxtabbar.js</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">&gt;</span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span><span class="hl-code">
 
</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">div</span><span class="hl-code"> </span><span class="hl-var">id</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">a_tabbar</span><span class="hl-quotes">&quot;</span><span class="hl-code"> </span><span class="hl-var">style</span><span class="hl-code">=</span><span class="hl-quotes">&quot;</span><span class="hl-string">width:395px; height:30px;</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">/&gt;</span><span class="hl-code">
</span><span class="hl-brackets">&lt;</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span><span class="hl-code"><div class="hl-main"><pre><span class="hl-identifier">tabbar</span><span class="hl-code"> = </span><span class="hl-reserved">new</span><span class="hl-code"> </span><span class="hl-identifier">dhtmlXTabBar</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a_tabbar</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">top</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">setSkin</span><span class="hl-brackets">(</span><span class="hl-quotes">'</span><span class="hl-string">dhx_skyblue</span><span class="hl-quotes">'</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">setImagePath</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">../../codebase/imgs/</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">enableAutoSize</span><span class="hl-brackets">(</span><span class="hl-reserved">false</span><span class="hl-code">, </span><span class="hl-reserved">true</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">addTab</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a1</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">Tab 1-1</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">100px</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">addTab</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a2</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">Tab 1-2</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">100px</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">addTab</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a3</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">Tab 1-3</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">100px</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">setContentHTML</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a1</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">setContentHTML</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a2</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">setContentHTML</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a3</span><span class="hl-quotes">&quot;</span><span class="hl-code">, </span><span class="hl-quotes">&quot;</span><span class="hl-string">&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.&lt;br/&gt;The content can be set as &lt;b&gt;HTML&lt;/b&gt; node or as &lt;b&gt;HTML&lt;/b&gt; text.</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;
</span><span class="hl-identifier">tabbar</span><span class="hl-code">.</span><span class="hl-identifier">setTabActive</span><span class="hl-brackets">(</span><span class="hl-quotes">&quot;</span><span class="hl-string">a1</span><span class="hl-quotes">&quot;</span><span class="hl-brackets">)</span><span class="hl-code">;</span></pre></div></span><span class="hl-brackets">&lt;/</span><span class="hl-reserved">script</span><span class="hl-brackets">&gt;</span></pre></div>
        </div>
    <div class="footer">
        <div class="footer-logo"></div>
        <div class="copyright">Copyright &copy; 1998-2009 DHTMLX LTD.<br />All rights reserved.</div>
    </div>
	</body>
</html>